package yj;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableFeignClients(basePackages = {"yj.scms.goods.feignapi"})
@EnableDiscoveryClient // 服务发现
@EnableEurekaClient // 本服务启动后会注册到Eureka服务注册中心
@MapperScan(basePackages = "yj.scms.goods.mapper")
@EnableTransactionManagement//开启事务管理
@SpringBootApplication
public class ScmsGoodsService {
 
	public static void main(String[] args) {
		SpringApplication.run(ScmsGoodsService.class, args);
	}
}
